<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="org.firecloud.h5fun.model.javabean.*"%>
<%@page import="org.firecloud.h5fun.model.CommonConfig"%>
<%@page import="java.util.List"%>
<%
	CommonConfig webconfig = (CommonConfig) request.getServletContext().getAttribute("commonConfig");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/page-create-project.js"></script>
<title><%=webconfig.getTitle()%></title>
</head>
<body>
	<div class="doc">
		<jsp:include page="widget-head.jsp" />
		<table class="main-context table-solid" border="1">
			<tbody>
				<tr>
					<td>项目标题</td>
					<td colspan="2"><input id="title" type="text"
						class="height-light-input" style="width: 100%;" /></td>
				</tr>
				<tr>
					<td>项目分类</td>
					<td colspan="2"><select class="height-light-input" id="colum"
						style="width: 100%;">
							<%
								@SuppressWarnings("unchecked")
								List<ColumnBean> columns = (List<ColumnBean>) (application.getAttribute("columns"));
								for (ColumnBean column : columns) {
							%>
							<option value="<%=column.getId()%>"><%=column.getName()%></option>
							<%
								}
							%>
					</select></td>
				</tr>
				<tr>
					<td>封面图片</td>
					<td><img style="width: 200px; height: 100px;" id="showimage"
						src="image/logo.png" /></td>
					<td><input style="width: 100%;" class="height-light-input"
						id="imagefile" type="file" /></td>
				</tr>
				<tr>
					<td>项目类型</td>
					<td colspan="2"><select class="height-light-input" id="type"
						style="width: 100%;">
							<option value="1">原创</option>
							<option value="0">转载</option>
					</select></td>
				</tr>
				<tr>
					<td>可定制</td>
					<td colspan="2"><select class="height-light-input" id="isCreateApp"
						style="width: 100%;">
							<option value="1">可定制</option>
							<option value="0">不可定制</option>
					</select></td>
				</tr>
				<tr>
					<td>源文件压缩包</td>
					<td><div id="fileSum">请上传文件</div></td>
					<td><input style="width: 100%;" class="height-light-input"
						id="zipFile" type="file" /></td>
				</tr>
				<tr>
					<td>原URL</td>
					<td colspan="2"><input class="height-light-input"
						id="original_url" type="text" class="height-light-input"
						style="width: 100%;" /></td>
				</tr>
				<tr>
					<td>框架URL或AppsID</td>
					<td colspan="2"><input class="height-light-input"
						id="iframe_url" type="text" class="height-light-input"
						style="width: 100%;" /></td>
				</tr>
				<tr>
					<td>内容</td>
					<td colspan="2"><textarea class="height-light-input"
							id="context" class="height-light-input"
							style="width: 100%; height: 72px;"></textarea></td>
				</tr>
				<tr>
					<td colspan="3" align="center"><input id="create"
						class="height-light-input" style="width: 100px; height: 38px;"
						type="button" value="提交" /></td>
				</tr>
			</tbody>
		</table>
		<jsp:include page="widget-foot.jsp" />
	</div>
</body>
</html>